package CSS::Builder::Style::Value::Num;
use Moose;

#extends qw(CSS::Builder::Value);

has 'value'     => ( isa => 'Num' , is => 'rw' );
has 'positive'  => ( isa => 'Bool' , is => 'rw' , default => 1 );

sub css {
    my $self = shift;
    
    return ($self->positive ? '' : '-') . $self->value;
}

1;